import { defineStore } from 'pinia'
import {ref} from "vue"
import { getCategoryAPI } from '@/api/layout';
export const useCategoryStore = defineStore('category', () => {
    const headList=ref([])
    const getHeaderList=async()=>{
        const res=await getCategoryAPI()
        headList.value=res.result
    }
    return { getHeaderList,headList}
  })